﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
    public class MoralityType
    {
        public MoralityType()
        {
            m_RID = 0;

        }

        #region RID

        private int m_RID;

        public int RID
        {
            get { return m_RID; }
            set { m_RID = value; }
        }

        #endregion

        #region HistoryID

        private int? m_HistoryID;

        public int? HistoryID
        {
            get { return m_HistoryID; }
            set { m_HistoryID = value; }
        }

        #endregion

        #region Caption

        private string m_Caption;

        public string Caption
        {
            get { return m_Caption; }
            set { m_Caption = value; }
        }

        #endregion

        #region Index

        private int? m_Index;

        public int? Index
        {
            get { return m_Index; }
            set { m_Index = value; }
        }

        #endregion

        #region SchoolMark

        private string schoolmark;

        public string SchoolMark
        {
            get { return schoolmark; }
            set { schoolmark = value; }
        }

        #endregion

        #region Rewrite Equals and HashCode

        /// <summary>
        /// 
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj) return true;
            if ((obj == null) || (obj.GetType() != GetType())) return false;
            MoralityType castObj = (MoralityType)obj;
            return (castObj != null)
 && m_RID == castObj.RID;
        }

        /// <summary>
        /// 用唯一值实现GetHashCode
        /// </summary>
        public override int GetHashCode()
        {
            int hash = 25;
            hash = hash * 25
 * m_RID.GetHashCode(); return hash;
        }

        #endregion


    }


    [Serializable]
    public class VMoralityType
    {

        #region RID

        private int m_RID;

        public int RID
        {
            get { return m_RID; }
            set { m_RID = value; }
        }

        #endregion

        #region HistoryID

        private int? m_HistoryID;

        public int? HistoryID
        {
            get { return m_HistoryID; }
            set { m_HistoryID = value; }
        }

        #endregion

        #region Caption

        private string m_Caption;

        public string Caption
        {
            get { return m_Caption; }
            set { m_Caption = value; }
        }

        #endregion

        #region Index

        private int? m_Index;

        public int? Index
        {
            get { return m_Index; }
            set { m_Index = value; }
        }

        #endregion


    }
}